From: Roan Kattouw Date: Fri, 19 Aug 2011 17:20:35 +0000 (+0000) Subject: Use getInternalUrl() instead of getFullUrl() in purgeList.php . This was potentially... X-Git-Tag: 1.31.0-rc.0~28166 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=39e2d66b62f4f56f6861997640e7703883a3a347;p=lhc%2Fweb%2Fwiklou.git Use getInternalUrl() instead of getFullUrl() in purgeList.php . This was potentially a serious bug if $wgServer differed from $wgInternalServer in command-line mode (this is not the case on WMF, but might be the case on 3rd-party installs) --- diff --git a/maintenance/purgeList.php b/maintenance/purgeList.php index 226d8baba5..85a7aae2b9 100644 --- a/maintenance/purgeList.php +++ b/maintenance/purgeList.php @@ -52,7 +52,7 @@ class PurgeList extends Maintenance { } elseif ( $page !== '' ) { $title = Title::newFromText( $page ); if ( $title ) { - $url = $title->getFullUrl(); + $url = $title->getInternalUrl(); $this->output( "$url\n" ); $urls[] = $url; if ( $this->getOption( 'purge' ) ) { @@ -105,7 +105,7 @@ class PurgeList extends Maintenance { $urls = array(); foreach( $result as $row ) { $title = Title::makeTitle( $row->page_namespace, $row->page_title ); - $url = $title->getFullUrl(); + $url = $title->getInternalUrl(); $urls[] = $url; }